package com.test;


import com.pojo.BookTypeBean;
import com.admin.service.booktypeservice.BookTypeService;
import com.admin.service.booktypeservice.BookTypeServiceInF;

public class test3 {
    public static void main(String[] args) {

//        System.out.println();
        //测试添加图书的类型
        BookTypeBean bookTypeBean=new BookTypeBean();
        bookTypeBean.setTypeAddress("五楼501室");
        bookTypeBean.setTypeName("信息技术");
        BookTypeServiceInF bo=new BookTypeService();
        if(bo.insertBookType(bookTypeBean)){
            System.out.println("成功");
        }else {
            System.out.println("失败");
        }
//        BookTypeAddDao<BookTypeBean> addDao = new BookTypeAddDaoImpl();
//        try {
//
//            addDao.insert(bookTypeBean);
//
//        } catch (SQLException e) {
//            e.printStackTrace();
//        }
//        System.out.println();


    }

}
